import { AppList } from './project';
/**
 * baseline - 安全基线列表
 */
export interface BaseListVo {
  apps: Array<AppList>;                  //  CVE名称，展示在列表的CVE字段
  baselineListOverviewVos: Array<BaselineListOverviewVos>;                     //  CVSS得分
  difficulty: string;               //  利用难度
  serverIp: string;                 //  服务器IP，展示在服务器字段

}

export interface BaselineListOverviewVos {
  baselineName: string;
  baselineNumber: string;
  evidences: Array<Evidences>;
  pass: boolean;
  containerId: string;
  containerName: string;
  serverId: string;
  serverName: string;
}

export interface Evidences {
  evidence: string;
  pass: boolean;
}


export interface BaselineDetailVo {
  apps: Array<AppList>;
  baselines: Array<Baselines>;
  containerId: string;
  containerName: string;
  containerVersion: string;
  hostname: string;
  ip: string;
  releaseDate: string;
  serverId: string;
}

export interface LastReportTimeVo {
  date: number;
  day: number;
  hours: number;
  minutes: number;
  month: number;
  nanos: number;
  seconds: number;
  time: number;
  timezoneOffset: number;
  year: number;
}

export interface Baselines {
  baselineName: string;
  baselineNumber: string;
  checkProcess: string;
  description: string;
  evidences: Array<Evidences>;
  judgmentBasis: string;
  lastReportTime: Array<LastReportTimeVo>;
  note: string;
  pass: boolean;
}

export interface BaseListsVo {
  name: string;
  baselineNumber: string;
  containerIds: Array<ContainerIds>;
  description: string;
  checkProcess: string;
  judgmentBasis: string;
  note: string;
  modifyTime: string;
  createTime: string;
}

export interface ContainerIds {
  container_id: number;
}
